package com.cy.pj.sys.dao;
/*
@mapper注解由Mybatis框架定义,用于描述持久层
 */

import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysNoticeDao {
    //将内存中的notice对象,持久化到数据库
    int insertNotice(SysNotice notice);

    int updateNotice(SysNotice notice);

    //基于条件查询通告信息
    List<SysNotice> selectNotices(SysNotice notice);

    @Select("select * from sys_notice where id=#{id}")
    SysNotice selectById(Integer id);

    int deleteById(Integer... id);

}
